package com.fitbet.api.service;

import com.fitbet.entity.user.User;

/**
 * 
 * @author dan
 *
 */
public interface UserService {
    
    /**
     * 
     * @param userId
     * @return
     */
    public User load(Long userId);
    
    /**
     * 
     * @param unionid
     * @return
     */
    public User loadUser(String unionid);
    
    /**
     * 
     * @param unionid
     * @param nickname
     * @param avatar
     * @param openid
     * @return
     */
    public User create(String unionid, String nickname, String avatar, String openid);
}
